package cn.org.custom.client.handler;

import cn.org.custom.client.constants.Constants;
import io.netty.channel.ChannelHandlerContext;
import lombok.extern.slf4j.Slf4j;


@Slf4j
public class ExceptionCaughtAdapter {
    public void caught(ChannelHandlerContext ctx, Throwable cause) {
        log.debug("异常断开，按任意键退出..", cause);
        Constants.EXIT.set(true);
    }
}
